package com.company.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.company.project.entity.BasePageEntity;
import com.baomidou.mybatisplus.annotation.FieldFill;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * 车间工作单
 *
 * @author wenbin
 * @email *****@mail.com
 * @date 2024-08-14 15:35:39
 */
@Data
@TableName("work_order")
public class WorkOrderEntity extends BasePageEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 工作单ID
	 */
	@TableId("id")
	private String id;

	/**
	 * 车间名称
	 */
		@TableField("workshop")
		private String workshop;

	/**
	 * 车床编号
	 */
		@TableField("machine_number")
		private String machineNumber;

	/**
	 * 客户
	 */
		@TableField("custom")
		private String custom;

	/**
	 * 批次号
	 */
		@TableField("batch_number")
		private String batchNumber;

	/**
	 * 规格
	 */
		@TableField("specification")
		private String specification;

	/**
	 * 重量
	 */
		@TableField("weight")
		private Double weight;

	/**
	 * 创建时间
	 */
		@TableField("created_at")
		private Date createdAt;

	/**
	 * 更新时间
	 */
		@TableField("updated_at")
		private Date updatedAt;

	/**
	 * 排序
	 */
		@TableField("orders")
		private Integer orders;

	/**
	 * 是否删除(1未删除；0已删除)
	 */
		@TableField(value = "deleted", fill = FieldFill.INSERT)
		private Integer deleted;


}
